USE [hz]
GO

SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[task_Ratings](
	[ID] [int] IDENTITY(1,1) NOT NULL,
	[TaskID] [int] NOT NULL,
	[DateCreate] [datetime] NOT NULL,
	[Value] [int] NOT NULL,
	[Text] [text] NULL,
	[AccountID] [int] NOT NULL,
	[RoleOwner] [text] NOT NULL,
 CONSTRAINT [PK_task_Ratings] PRIMARY KEY CLUSTERED 
(
	[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[task_Ratings]  WITH CHECK ADD  CONSTRAINT [FK_task_Ratings_task_Tasks] FOREIGN KEY([TaskID])
REFERENCES [dbo].[task_Tasks] ([ID])
GO

ALTER TABLE [dbo].[task_Ratings] CHECK CONSTRAINT [FK_task_Ratings_task_Tasks]
GO


